<%@ Page Language="C#" MasterPageFile="~/Administration/main.master" AutoEventWireup="true"
    CodeFile="CustomerDetails.aspx.cs" Inherits="Tathata.Web.Administration.Administration_CustomerDetails" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register TagPrefix="nopCommerce" TagName="EmailTextBox" Src="Modules/EmailTextBox.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="AddressDisplay" Src="Modules/AddressDisplay.ascx" %>
<asp:Content ID="c1" ContentPlaceHolderID="cph1" runat="Server">
    <div>
        <ajaxToolkit:TabContainer runat="server" ID="CustomerTabs" ActiveTabIndex="0">
            <ajaxToolkit:TabPanel runat="server" ID="pnlCustomerInfo" HeaderText="Customer Info">
                <ContentTemplate>
                    <table class="adminContent">
                        <tr>
                            <td class="adminTitle">
                                Customer GUID:
                            </td>
                            <td class="adminData">
                                <asp:Label ID="lblCustomerGUID" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Email:
                            </td>
                            <td class="adminData">
                                <asp:Label runat="server" ID="lblEmail" Width="100"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Full name:
                            </td>
                            <td class="adminData">
                                <asp:Label runat="server" ID="lblFullName" Width="100"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Affiliate:
                            </td>
                            <td class="adminData">
                                <asp:DropDownList ID="ddlAffiliate" AutoPostBack="False" CssClass="adminInput" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Is Administrator:
                            </td>
                            <td class="adminData">
                                <asp:CheckBox ID="cbIsAdmin" runat="server"></asp:CheckBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Active:
                            </td>
                            <td class="adminData">
                                <asp:CheckBox ID="cbActive" runat="server"></asp:CheckBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="adminTitle">
                                Registration date:
                            </td>
                            <td class="adminData">
                                <asp:Label ID="lblRegistrationDate" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
           
            
        </ajaxToolkit:TabContainer>
    </div>
    <table class="adminContent">
        <tr>
            <td class="adminTitle" align="left">
                <asp:Button ID="SaveButton" runat="server" CssClass="adminButton" Text="Save" OnClick="SaveButton_Click">
                </asp:Button>
            </td>
            <td class="adminData" align="left">
                <asp:Button ID="DeleteButton" runat="server" CssClass="adminButton" Text="Delete"
                    OnClick="DeleteButton_Click" CausesValidation="false"></asp:Button>
                <ajaxToolkit:ConfirmButtonExtender ID="ConfirmDeleteButtonExtender" runat="server"
                    TargetControlID="DeleteButton" DisplayModalPopupID="ModalPopupExtenderDelete" />
                <br />
                <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtenderDelete" runat="server" TargetControlID="DeleteButton"
                    PopupControlID="pnlDeletePopup" OkControlID="deleteButtonOk" CancelControlID="deleteButtonCancel"
                    BackgroundCssClass="modalBackground" />
                <asp:Panel ID="pnlDeletePopup" runat="server" Style="display: none; width: 250px;
                    background-color: White; border-width: 2px; border-color: Black; border-style: solid;
                    padding: 20px;">
                    <div style="text-align: center;">
                        Are you sure?
                        <br />
                        <br />
                        <asp:Button ID="deleteButtonOk" runat="server" Text="OK" CssClass="adminButton" CausesValidation="false" />
                        <asp:Button ID="deleteButtonCancel" runat="server" Text="Cancel" CssClass="adminButton"
                            CausesValidation="false" />
                    </div>
                </asp:Panel>
            </td>
        </tr>
    </table>
</asp:Content>
